﻿using B.S.BaseData.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace B.S.BaseData.Write.API.Command.UserCommand
{
    public class AddUserCommand:IRequest<APIResult<object>>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }

        public string Pass { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 县
        /// </summary>
        public string County { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUser { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 是否为领导人 0-员工 1-领导人 2-总负责人
        /// </summary>
        public int PowerId { get; set; }

    }
}
